Skip to content

QuestionHelper - disableStty is static method #8111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 4, 2017

Conversation

SpacePossum
Copy link
Contributor

The docs suggest disabling stty must be done on each instance of QuestionHelper, however it is a static method setting a static property, i.e. it effects all instances.
Besides, its always a good idea to call static methods using the static call syntax.

@SpacePossum SpacePossum changed the title QuestionHelpe - disableStty is static method QuestionHelper - disableStty is static method Jul 3, 2017
@xabbuh
Copy link
Member

xabbuh commented Jul 4, 2017

Thank you @SpacePossum.

@xabbuh xabbuh merged commit c48d595 into symfony:3.3 Jul 4, 2017
xabbuh added a commit that referenced this pull request Jul 4, 2017
…sum)

This PR was merged into the 3.3 branch.

Discussion
----------

QuestionHelper - `disableStty` is static method

The docs suggest disabling stty must be done on each instance of `QuestionHelper`, however it is a static method setting a static property, i.e. it effects _all_ instances.
Besides, its always a good idea to call `static` methods using the `static` call syntax.

Commits
-------

c48d595 Update questionhelper.rst
@SpacePossum SpacePossum deleted the patch-1 branch July 4, 2017 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants